package com.itheima.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.model.common.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import com.itheima.admin.mapper.AdSensitiveMapper;
import com.itheima.admin.service.AdSensitiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 10589
* @description 针对表【ad_sensitive(敏感词信息表)】的数据库操作Service实现
* @createDate 2022-04-29 15:12:55
*/
@Service
public class AdSensitiveServiceImpl extends ServiceImpl<AdSensitiveMapper, AdSensitive>
    implements AdSensitiveService {
@Autowired
private AdSensitiveMapper adSensitiveMapper;
    @Override
    public ResponseResult<List<String>> selectAllSensitive() {
       return ResponseResult.okResult(adSensitiveMapper.findAllSensitives());
    }
}




